STEP 12: Oops! Our loop is only decoding the first letter. Let's make a slight change to decode the entire message.

  • Find your ord("K") command. Replace the "K" with the variable letter.
  • Each time the loop runs, letter is storing the next letter of the secret_message.
  • Click Run and see the decoded message!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)